package com.jt.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProviderController {
    @Value("${server.port}")//获取端口号
    private String server;
    @GetMapping("/provider/echo/{msg}")
    public String doRestEcho(@PathVariable String msg){
        return server+" say hello "+msg;
    }

}
